#ifndef INFORMATIONLINE_H
#define INFORMATIONLINE_H


#include <QLabel>
#include <QComboBox>
#include <QLineEdit>
#include <QPushButton>
#include <QHBoxLayout>
#include "informationlink.h"

using namespace models;

namespace views
{
    class InformationLine: public QWidget
    {
        Q_OBJECT

    public:
        InformationLine();
        InformationLine(int id, LinkType type, QString linkText);
        virtual ~InformationLine();
        void    initUI();
        void    setupUI();
        int     getId();
        QString getType();
        QString getLinkText();
        void setId(int id);
        void setType(LinkType type);
        void setLinkText(QString linkText);

    signals:
        void autoDeletion(int);

    public slots:
        void emitAutoDeletion();

    private:
        int         _id;
        QComboBox   *_typeBox;
        QLineEdit   *_linkText;
        QPushButton *_btnAutoDelete;
    };
}

#endif // INFORMATIONLINE_H
